package db9;

public class Student {

    int ptest;
    int ftest;
    public Student(){

    }
    public Student(int ptest,int ftest){
        this.ptest=ptest;
        this.ftest=ftest;
    }

    public void getScore() throws Exception{

        double score =ptest+ftest*0.5;
        if (score<60){
            throw new Exception();
//            System.out.println();
        }
        System.out.println("总成绩为："+score);
//        return score;
    }
}
